import {request} from './request' 

/* 获取歌手详情 */
export function getDetail(id){
    return request({
        url:'artist/detail',
        params:{
            id:id
        }
    })
}

/* 获取歌手描述 */
export function getDesc(id){
    return request({
        url:'artist/desc',
        params:{
            id:id
        }

    })
}

// http://localhost:3000/artist/desc?id=3684
export class Desc{
    constructor(introduction,topicData,briefDesc){ 
        this.introduction=introduction
        this.topicData=topicData
        this.briefDesc=briefDesc
    }
} 


//es6 语法
/* class Person{
    constructor(name,age){
        this.name = name
    }
}

const p = new Person('why',18)  */
